package com.example.mapper;



import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.domain.Permission;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 权限表 Mapper 接口
 * </p>
 *
 * @author wuchangyong
 * @since 2022-11-12
 */
@Component
public interface PermissionMapper extends BaseMapper<Permission> {

    /**
     * 连表查询当前登录用户拥有的权限
     * @param userId
     * @return
     */
    List<Permission> selectByUserId(int userId);
}
